package cn.syy.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdminLoginDto {
    @NotEmpty(message = "请输入账号！")
    private String username;
    @NotEmpty(message = "请输入密码！")
    private String password;
    @NotNull(message = "参数不能为空！")
    private Integer type;
}
